SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE VIEW dbo.vweDocumentacionMovimientos
AS
SELECT     IdDocumentacionMovimientos AS ID,
		   IdDocumentacion, FechaEntrada,
		   Origen,
		   FechaSalida,
		   Destino,
		   FechaReingreso,
		   Observaciones
FROM       dbo.tb_DocumentacionMovimientos
GO
GRANT SELECT ON  [dbo].[vweDocumentacionMovimientos] TO [GestionDespacho]
GRANT INSERT ON  [dbo].[vweDocumentacionMovimientos] TO [GestionDespacho]
GRANT DELETE ON  [dbo].[vweDocumentacionMovimientos] TO [GestionDespacho]
GRANT UPDATE ON  [dbo].[vweDocumentacionMovimientos] TO [GestionDespacho]
GRANT SELECT ON  [dbo].[vweDocumentacionMovimientos] TO [Informatica]
GRANT INSERT ON  [dbo].[vweDocumentacionMovimientos] TO [Informatica]
GRANT DELETE ON  [dbo].[vweDocumentacionMovimientos] TO [Informatica]
GRANT UPDATE ON  [dbo].[vweDocumentacionMovimientos] TO [Informatica]
GRANT SELECT ON  [dbo].[vweDocumentacionMovimientos] TO [SoloVer]
GO
